package com.scpii.universal.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * universalWeb
 * 
 * @author liuhj 2012-7-24下午03:37:39
 */
public class PageNode extends PageTree {
	private static final long serialVersionUID = -3520616793271973699L;
	private Integer isFirstPage;// 0是，1不是
	private Integer isMorePage;
	private List<PageNode> children;

	public PageNode(Integer intResourceId, Integer parentPageId,
			String varResourceName, Integer isFirstPage, Integer nextType,
			Integer isMorePage) {
		super();
		this.setIntResourceId(intResourceId);
		this.setVarResourceName(varResourceName);
		this.setParentPageId(parentPageId);
		this.setNextType(nextType);
		this.isFirstPage = isFirstPage;
		this.isMorePage = isMorePage;
	}

	public void addChild(PageNode node) {
		if (this.getChildren() == null) {
			children = new ArrayList<PageNode>();
		}
		children.add(node);
	}

	public List<PageNode> getChildren() {
		return children;
	}

	public void setChildren(List<PageNode> children) {
		this.children = children;
	}

	public Integer getIsMorePage() {
		return isMorePage;
	}

	public void setIsMorePage(Integer isMorePage) {
		this.isMorePage = isMorePage;
	}

	public Integer getIsFirstPage() {
		return isFirstPage;
	}

	public void setIsFirstPage(Integer isFirstPage) {
		this.isFirstPage = isFirstPage;
	}
}
